Skip to content

#1882 use ClassValue instead of synchronized WeakHashMap in ClassFactory#1883

Merged
laurentschoelens merged 3 commits intoeclipse-ee4j:masterfrom
winfriedgerlach:use-ClassValue-instead-of-synchronized-WeakHashMap
Feb 3, 2026
Merged

#1882 use ClassValue instead of synchronized WeakHashMap in ClassFactory#1883
laurentschoelens merged 3 commits intoeclipse-ee4j:masterfrom
winfriedgerlach:use-ClassValue-instead-of-synchronized-WeakHashMap

Conversation

@winfriedgerlach
Copy link
Contributor

@winfriedgerlach winfriedgerlach commented Jan 30, 2026

(to avoid locking issues under heavy multithreaded load)
closes #1882

…o avoid locking issues under heavy multithreaded load)
@winfriedgerlach winfriedgerlach changed the title #1882 use ClassValue instead of synchronized WeakHashMap in ClassFactory use ClassValue instead of synchronized WeakHashMap in ClassFactory Jan 30, 2026
@laurentschoelens
Copy link
Contributor

laurentschoelens commented Jan 30, 2026

@winfriedgerlach : build is failing on jdk11, could you check why ? Does it fail too on your side ?

@winfriedgerlach winfriedgerlach changed the title use ClassValue instead of synchronized WeakHashMap in ClassFactory #1882 use ClassValue instead of synchronized WeakHashMap in ClassFactory Jan 30, 2026
@winfriedgerlach
Copy link
Contributor Author

@laurentschoelens fixed

@laurentschoelens laurentschoelens added this to the 4.0.7 milestone Jan 30, 2026
@laurentschoelens laurentschoelens added enhancement New feature or request performance Issue or task regarding performance issue or enhancement labels Jan 30, 2026
Copy link
Contributor

@laurentschoelens laurentschoelens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me (as far as I know about ClassValue usage)
Please fix my few comments and I'll approve on my side

Copy link
Contributor

@laurentschoelens laurentschoelens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laurentschoelens laurentschoelens merged commit 5d8d1e5 into eclipse-ee4j:master Feb 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request performance Issue or task regarding performance issue or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constructor cache issues in ClassFactory

2 participants